<!--# layout("/common/leftmallout.html",{"jsBase":"/js/user/sellerInfo/"}){ -->
<link rel="stylesheet" href="http://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/style/member.css">

<div class="center">
	<div class="section">
    	<!-------------面包屑--------------------->
            <div class="bread-crumbs">
                 <br/>
                </div>
        <!------------------主体结构--------------------->
        <div class="small-page">
        <!--左侧-->
        	
       <!-------左侧end-------->
       <!-------右侧-------->
            <div class="page-article">
            	<div class="area_mend_head">
                    <span>个人信息</span>
                    <em>|  请尽量完整填写您的个人信息，方便与您联系</em>
                </div>
                  
                <div class="area_mend_body">
                  <div class="member_user">
                	
                	
                    </div>
                </div>
            </div>
       <!-------右侧end-------->
        </div>
        <!------------------->
    </div>
</div>

<!--#} -->
<script>
layui.use(['index'], function(){
    var popSellerInfoIndex = layui.index
    popSellerInfoIndex.init();
});
$('#setting').css({'color':'#6647b2','font-weight':'900'});
</script>
<script>
doAjax('/user/sellerInfo/getSellerInfo.json','post',{},function(res){
	$(".member_user").html("");
	if (res.code != "1") {
		layer.alert(res.message, {icon: 2});
		return false;		
	} 
	if(res.data != null){
		var html="";
		html +='<p class="poto"><label>门头照：  </label><span class="headerImage">'
			 if(res.data.sellerImageUrl == null){
				html +='<img id="img_sellinfo" src="https://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/image/pic_pop_01.png">';
			 }else{
				html +='<img id="img_sellinfo" src="https://ziyunoss.oss-cn-hangzhou.aliyuncs.com/'+res.data.sellerImageUrl+'>'
			 }
		    if(res.data.sellerName == null){
		    	res.data.sellerName="无";
		    }
		    if(res.data.sellerName == null){
		    	res.data.sellerName="无";
		    }
		    if(res.data.sellerMobile == null){
		    	res.data.sellerMobile="无";
		    }
		    if(res.data.sellerQq == null){
		    	res.data.sellerQq="无";
		    }
		    if(res.data.sellerEmail == null){
		    	res.data.sellerEmail="无";
		    }
		    if(res.data.area == null && res.data.addr == null ){
		    	res.data.area="无";
		    	res.data.addr="";
		    }
		
	           html+='</span></p><p><label>登录名： </label>'
		           +'<span>'+res.data.sellerName+'</span>'
		           +'</span></p><p><label>手机号码：  </label>'
		           +'<span>'+res.data.sellerMobile+'</span>'
		           +'</span></p><p><label>QQ： </label>'
		           +'<span>'+res.data.sellerQq+'</span>'
		           +'</span></p><p><label>邮箱：  </label>'
		           +'<span>'+res.data.sellerEmail+'</span>'
		           +'</span></p><p><label>地址： </label>'
		           +'<span>'+res.data.area+' '+res.data.addr+'</span></p>';
		   $(".member_user").html(html);
	}
	//var html2='<div style="height:320px; background:url("https://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/image/pic_pop_07.png") center center no-repeat; text-align:center;  font-size:22px; color:rgb(208,208,208);overflow:hidden;"><p style="margin-top:250px;">无商户信息！</p></div>'';
	//$(".area_mend_body").html(html2);
	
});

</script>
<script >
	var html=$('.page-aside');
	var righthtml=$('.page-article');
	$('.small-page').empty();
	$('.small-page').append(html);
	$('.small-page').append(righthtml);
</script>
<style>
 #img_sellinfo{
   width:150px;
   height:150px;
   margin-top: -40px;
 }
</style>
